from fairseq import checkpoint_utils

def dec(func):
    def wrapper(*args, **kwargs):
        print("开始执行如下函数："+func.__name__)
        return func(*args, **kwargs)
    return wrapper

@dec
def gxl_fun():
    model_info = checkpoint_utils.load_model_ensemble_and_task(
        "/home/work_nfs7/bsmu/SALMONN/resource/chinese_hubert_large.pt")
    model = model_info[0]
    print(model)

if __name__ == "__main__":
    gxl_fun()